package org.steven.crm.core.data;

import com.steven.xdb.session.DBSession;

import java.util.Map;

/**
 * @Author wuzw
 * @Date 2024/1/11 23:47
 * @Version 1.0
 */
public class ExtViewContext {
    private static ThreadLocal<String> cascadeQueryGroupThreadLocal = new ThreadLocal<>();

    public static String getCascadeQueryGroup() {
        return cascadeQueryGroupThreadLocal.get();
    }

    public static void setCascadeQueryGroup(String group) {
        cascadeQueryGroupThreadLocal.set(group);
    }

    public static void destroy() {
        cascadeQueryGroupThreadLocal.remove();
    }
}
